package bsh.meta;

import org.objectweb.asm.Opcodes;

/**
 * {@link FieldDescriptor} para campos da classe sendo compilada
 * 
 * @author takeshi
 */
public class UnfinishedTypeFieldDescriptor extends AbstractFieldDescriptor implements FieldDescriptor {

    private final String name;

    /**
     * @param fieldType {@link TypeWrapper}
     * @param name String
     * @param declaringType {@link UnfinishedType}
     */
    public UnfinishedTypeFieldDescriptor(TypeWrapper fieldType, String name, UnfinishedType declaringType) {
        super(declaringType, fieldType);
        this.name = name;
    }

    /**
     * {@inheritDoc}
     */
    public String fieldName() {
        return this.name;
    }

    /**
     * {@inheritDoc}
     */
    public int asmModifiers() {
        return Opcodes.ACC_PUBLIC;
    }

    /**
     * {@inheritDoc}
     */
    public boolean isStatic() {
        return false;
    }

}
